﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="OfficeSuppliesFinace.aspx.cs" Inherits="ServicesSheet_OfficeSuppliesFinace" %>

<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc3" %>
<%@ Register Src="../Control/DepartmentDList.ascx" TagName="DepartmentDList" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 42px">
                <asp:Label ID="Label5" runat="server" Text="部门:"></asp:Label>
            </td>
            <td style="width: 213px">
                <uc1:DepartmentDList ID="DepartmentDList1" runat="server" />
            </td>
            <td style="width: 46px">
                <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
            </td>
            <td style="width: 144px">
                <uc3:DSelYearMonth ID="DSelYearMonth1" runat="server" EndOffsetYear="1" StartOffsetYear="1" />
            </td>
            <td style="text-align:right">
                <span class="roundbtn">
                    <asp:LinkButton ID="btnSearch" runat="server" Text="&nbsp;&nbsp;&nbsp;&nbsp;查 询&nbsp;&nbsp;&nbsp;&nbsp;" OnClick="btnSearch_Click"></asp:LinkButton>
                </span>
            </td>
             <td style="width: 50px">
            
            </td>
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" aborticonurl="../Image/UIPics/Abort.gif"
        addiconurl="../Image/UIPics/Add.gif" applyiconurl="../Image/UIPics/Apply.gif"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        canceliconurl="../Image/UIPics/Cancel.gif" cellpadding="5" createinnernavigator="False"
        forecolor="#333333" headerstylewrap="False" mouseoveraborticonurl="../Image/UIPics/Abort2.gif"
        mouseoveraddiconurl="../Image/UIPics/Add2.gif" mouseoverapplyiconurl="../Image/UIPics/Apply2.gif"
        mouseovercanceliconurl="../Image/UIPics/Cancel2.gif" mouseoverokiconurl="../Image/UIPics/OK2.gif"
        mouseoverqueryiconurl="../Image/UIPics/Query2.gif" okiconurl="../Image/UIPics/OK.gif"
        onpageindexchanging="wgvMaster_PageIndexChanging" pagesize="20" queryiconurl="../Image/UIPics/Query.gif"
        totalcaption="合计" width="100%" allowpaging="False" showfooter="True">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle font-bold="True" forecolor="Red" BorderStyle="None" />
        <navcontrols>
                <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add.gif" MouseOverImageUrl="../image/uipics/add2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="OK" ControlText="Insert" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/ok.gif" MouseOverImageUrl="../image/uipics/ok2.gif"
                    Size="25" />
                <InfoLight:ControlItem ControlName="Cancel" ControlText="cancel" ControlType="Image"
                    ControlVisible="True" ImageUrl="../image/uipics/cancel.gif" MouseOverImageUrl="../image/uipics/cancel2.gif"
                    Size="25" />
            </navcontrols>
        <columns>
                <asp:BoundField DataField="DepartmentId" HeaderText="部门编号" SortExpression="DepartmentId" />
                <asp:BoundField DataField="DepartmentName" HeaderText="部门名称" SortExpression="DepartmentName" />
                <asp:TemplateField HeaderText="日期" SortExpression="SuppliesYear">
                    <itemtemplate>
<asp:Label id="Labe31" runat="server" Text='<%# GetYearMonth(Eval("years").ToString(),Eval("months").ToString()) %>' __designer:wfdid="w5"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="金额(元)" SortExpression="countMoney">
                    <edititemtemplate>
<asp:TextBox id="TextBox1" runat="server" Text='<%# Bind("countMoney") %>' __designer:wfdid="w11"></asp:TextBox>
</edititemtemplate>
                    <footertemplate>
<asp:Label id="Label2" runat="server" Text="总计：" __designer:wfdid="w12"></asp:Label>
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label1" runat="server" Width="82px" Text='<%# Bind("countMoney", "{0:C2}") %>' __designer:wfdid="w10"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                            
            </columns>
        <rowstyle backcolor="#EFF3FB" />
        <editrowstyle backcolor="#2461BF" />
        <selectedrowstyle backcolor="#D1DDF1" font-bold="True" forecolor="#333333" />
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center" />
        <headerstyle backcolor="DeepSkyBlue" font-bold="True" forecolor="White" />
        <alternatingrowstyle backcolor="White" bordercolor="White" />
        <totalcolumns>
                <InfoLight:GridViewTotalItem FieldName="countMoney" />
            </totalcolumns>
    </infolight:webgridview>
</asp:Content>
